package com.union.core.sys.dao;

import java.util.List;

import com.union.core.sys.model.Role;

/**
 * 接口: 角色
 * filename: RoleDao.java
 * project:  union
 * @company Hainan Jowe Technology Ltd
 * @author Harry Zhang
 * @create in 2012-10-29
 * @version 1.0
 */
public interface RoleDao {
	public List<Role> queryRoleList(int roleId,String roleName,String addManager,String addTime,String parName,
			int roleType,int orgId,String parVal,String orderBy,int start,int rownum);	//查找角色记录
	public int queryRoleListCount(int roleId,String roleName,String addManager,String addTime,String parName,
			int roleType,int orgId,String parVal);	//查找角色记录数
	public boolean addRole(Role role);					//添加角色
	public boolean delRole(int roleId);					//删除角色
	public boolean update(Role role);					//修改角色
	public Role queryByid(int roleId);					//查询单条角色记录
	public boolean checkRoleName(String roleName);
}
